from flask_shop.main import db
from sqlalchemy.orm import Mapped, mapped_column, relationship
from sqlalchemy import Integer, Boolean

class Switch(db.Model):
    """
    开关模型
    """
    __tablename__ = 't_switch'
    # 项目开启状态
    is_on: Mapped[bool] = mapped_column(Boolean)
    # 项目类型  1：助学兴邦
    project_type: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=False)


